package com.framework.loippi.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.framework.loippi.dao.AddressDao;
import com.framework.loippi.entity.Address;
import com.framework.loippi.service.AddressService;
import java.util.List;
/**
 * SERVICE - Address(用户收货地址表)
 * 
 * @author wmj
 * @version 2.0
 */
@Service
public class AddressServiceImpl extends GenericServiceImpl<Address, Long> implements AddressService {
	
	@Autowired
	private AddressDao addressDao;
	
	
	@Autowired
	public void setGenericDao() {
		super.setGenericDao(addressDao);
	}

	public List<Address> findListByPage(Object parameter){
		return addressDao.findListByPage(parameter);
	}

	public Long deletes(Object parameter){
		return addressDao.deletes( parameter);
	}

	@Override
	public List<Address> findByUserId(Integer userId) {
		return addressDao.findByUserId(userId);
	}


}
